<template>
	<view>
		<view >
			<gui-article-list :articles="articleList" ></gui-article-list>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				articleList: [
					
				]
			}
		},
		onLoad() {
			this.initData();
		},
		methods: {
			initData(){
				
				var self = this;
				
				uni.gRequest.get("qiugou/list").then(result=>{
					
					result.rows.forEach(x=>{
						self.articleList.push({
							id: 2,
							title: x.qiugou_title,
							author: x.user_id,
							createTime: x.create_time,
							imgs: [],
							views: x.qiugou_price
						})
					});
					
				});
				
				
			}
		}
	}
</script>

<style>

</style>